/*
 *  Command.h
 *  osnutshell
 *
 *  Created by Boone Calhoun on 4/9/10.
 *  Copyright 2010 University of Florida. All rights reserved.
 *
 */

#ifndef GUARD_COMMAND_H
#define GUARD_COMMAND_H
 
 #include <string>

 namespace nutshell
 {
 
	class Command
	{

		public:
			std::string command_name;
			int in;
			int out;
			int argc;
			char** argv;
			
			Command()
				: in(0), out(1), argc(0), argv(0)
			{}
			
			~Command()
			{
				for (int i = 0; i < argc; ++i)
				{
					delete[] argv[i];
				}
				
				delete[] argv;
			}
	};
	
	
}

#endif
